<template>
    <div>
        父组件
        <zi @getDates="getDates" />
        <h1 v-if="sonDtaes">{{ sonDtaes }}</h1>
        {{ ZuDates }}
    </div>
</template>
<script setup>
import zi from "./zi.vue"
import { ref, defineExpose, provide } from "vue"
const sonDtaes = ref("")
function getDates(data) {
    console.log(data);
    sonDtaes.value = data
}
defineExpose({ getDates })
provide("ZuDates", "1234567")
</script>